/*
 * CS575 Software Design
 * Group 6
 * Group Members: Anthony Davidson, Kendra Scheesley, Lyndsey Whitman, Stephen Zakrewsky
 * Date: May 28, 2012
 * Main Author(s): Anthony Davidson
 */
package edu.drexel.cs575.a3.location;

/**
 * Factory class for creating moon locations.
 * 
 * @author anthony
 *
 */
class MoonLocationFactory implements LocationFactory{
	private static final MoonLocationFactory instance = new MoonLocationFactory();
	
	private MoonLocationFactory() {	}
	
	public static MoonLocationFactory getInstance() {
		return instance;
	}

	@Override
	public Location createLocation(LocaleEnum localeEnum) {
		if (localeEnum == null) {
			throw new IllegalArgumentException("Locale enum cannot be null");
		}
		
		// Nothing special about the moon
		return new MoonLocation(localeEnum);
	}

}
